(function($){
	$.fn.LoginButton = function(loginURL) {
		var obj = this.get();
		this.click(function(){
			$("#LoginOverlay").modal({remote: gData.loginURL});
		});
	}
})(jQuery);


$("li.login > a").LoginButton(gData.loginURL);